{% set clazz = "building" %}
{% set title = project.name + ' ' + group.groupName %}
{% extends './modules/common/templates/main.html' %}
{% block style %}
  <link rel="stylesheet" type="text/css" href="{{ '/static/css/home.css'|version }}" />
{% endblock %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1 class="title">{{ title }}</h1>
    </header>
  {% endif %}
  <section>
    {% if list.length %}
      <div class="list compact overlap">
        {% for item in list %}
          <a class="item" href="/bind/room?id={{ item.id }}">
            <span class="text">{{ item.groupName }} {{ item.name }}</span>
            <i class="icon text-gray">&#xe61a;</i>
          </a>
        {% endfor %}
      </div>
    {% else %}
      <div class="plate">
        <div class="draw">
          <img src="http://7xjyap.com2.z0.glb.qiniucdn.com/image-2f0df3ff-2a9a-4367-a7df-bd53231b0a9f.png" alt="空白">
          <h4 class="title">没有找到开放的楼宇</h4>
        </div>
      </div>
    {% endif %}
  </section>
{% endblock %}
{% block script%}{% endblock %}